package com.example.mapper;

import com.example.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface RoomMapper {
    List<Room> selectAll();
    int deleteById(Integer id);
    int insert(Room room);
    Room selectById(Integer id);
    int update(Room room);
    Room selectByFamilyIdAndName(Integer familyId, String roomName);
    List<Room> selectByFamilyId(Integer familyId);
} 